FROM openshift/golang-builder@sha256:4820580c3368f320581eb9e32cf97aeec179a86c5749753a14ed76410a293d83 AS builder
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g224020c.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g224020c.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=224020c OS_GIT_VERSION=4.10.0-202202160023.p0.g224020c.assembly.stream-224020c SOURCE_DATE_EPOCH=1643220616 SOURCE_GIT_COMMIT=224020ca9f043e8023e68dcc133d9a957025d6d1 SOURCE_GIT_TAG=224020c SOURCE_GIT_URL=https://github.com/openshift/cloud-network-config-controller 

WORKDIR /go/src/github.com/openshift/cloud-network-config-controller
COPY . .
RUN make build

FROM openshift/ose-base:v4.10.0.20220216.010142
ENV __doozer=update BUILD_RELEASE=202202160023.p0.g224020c.assembly.stream BUILD_VERSION=v4.10.0 OS_GIT_MAJOR=4 OS_GIT_MINOR=10 OS_GIT_PATCH=0 OS_GIT_TREE_STATE=clean OS_GIT_VERSION=4.10.0-202202160023.p0.g224020c.assembly.stream SOURCE_GIT_TREE_STATE=clean 
ENV __doozer=merge OS_GIT_COMMIT=224020c OS_GIT_VERSION=4.10.0-202202160023.p0.g224020c.assembly.stream-224020c SOURCE_DATE_EPOCH=1643220616 SOURCE_GIT_COMMIT=224020ca9f043e8023e68dcc133d9a957025d6d1 SOURCE_GIT_TAG=224020c SOURCE_GIT_URL=https://github.com/openshift/cloud-network-config-controller 

COPY --from=builder /go/src/github.com/openshift/cloud-network-config-controller/_output/bin/cloud-network-config-controller /usr/bin/

LABEL \
        io.k8s.display-name="Cloud Network Config Controller" \
        io.k8s.description="Controller performing cloud level network modification" \
        io.openshift.tags="openshift" \
        maintainer="Alexander Constantinescu <aconstan@redhat.com>" \
        name="openshift/ose-cloud-network-config-controller" \
        com.redhat.component="ose-cloud-network-config-controller-container" \
        io.openshift.maintainer.product="OpenShift Container Platform" \
        io.openshift.maintainer.component="Networking" \
        io.openshift.maintainer.subcomponent="ovn-kubernetes" \
        release="202202160023.p0.g224020c.assembly.stream" \
        io.openshift.build.commit.id="224020ca9f043e8023e68dcc133d9a957025d6d1" \
        io.openshift.build.source-location="https://github.com/openshift/cloud-network-config-controller" \
        io.openshift.build.commit.url="https://github.com/openshift/cloud-network-config-controller/commit/224020ca9f043e8023e68dcc133d9a957025d6d1" \
        version="v4.10.0"

